<?php

class model_conn {

    protected static $conn = NULL;

    public static $host = 'localhost';
    public static $usuario = 'root';
    public static $senha = 'vertrigo';
    public static $banco = 'esud';


    /**
     *
     * @return model_dbm_orm
     */
    public static function get_conn() {
        if (self::$conn === NULL) {
            self::$conn = new model_dbm_orm(array(
                self::$host,
                self::$usuario,
                self::$senha, 
                self::$banco
            ));
            self::$conn->usarUtf8();
        }
        return self::$conn;
    }
}


class model_conn_information_schema {

    protected static $conn = NULL;

    public static $host = 'localhost';
    public static $usuario = 'root';
    public static $senha = 'vertrigo';
    public static $banco = 'information_schema';


    /**
     *
     * @return model_dbm
     */
    public static function get_conn() {
        if (self::$conn === NULL) {
            self::$conn = new model_dbm(array(
                self::$host,
                self::$usuario,
                self::$senha, 
                self::$banco
            ));
            self::$conn->usarUtf8();
        }
        return self::$conn;
    }
}

?>